<tagLib name="html" />
<include file="../Public/header" />
	<div id="category">
		<ul>
			<li>
				<php>echo !isset($GLOBALS['category']) ? "所有" : '<a href="__URL__/show/site/'.$GLOBALS["site"].'" title="所有栏目">所有</a>';</php><a href="__APP__/Feed/read/category/{$GLOBALS['category']}" title="所有栏目" ><img src="../Public/images/rss.gif"></a>
			</li>
			<iterate name="categoryList" id="vo">
				<li>
					<if condition="$vo['categoryhash'] eq $GLOBALS['category']">{$vo.title}<else /><a href="__URL__/show/category/{$vo.categoryhash}" title="{$vo.title}">{$vo.title}</a></if><a href="" title="" ><img src="../Public/images/rss.gif"></a>
				</li>
			</iterate>
		</ul>
	</div>
<div id="viewaction">按 [ <a href="__ACTION__/view/list">列表</a> | <a href="__ACTION__/view/thumb">图文 </a>| 博客 |  <a href="__ACTION__/view/image">图片</a> ]  方式查看</div>
	<div class="clear"></div>
		<div id="postlist">
		<iterate name="newsList" id="vo">
			<div class="post" id="post-3">
				<h3><a href="__URL__/view/news/{$vo.newshash}"  title="{$vo.title}">{$vo.title}<if condition="$vo['image'] neq 0"> [图]</if></a></h3>

				<div class="info">[ <php>echo date("y/m/d h:s", $vo['date']);</php>| <a href='__URL__/show/site/{$vo.sitehash}'>{$vo.site}</a> | <a href="__URL__/show/category/{$vo.categoryhash}">{$vo.category}</a> | <a href="__URL__/show/site/{$vo.sitehash}/author/{$vo.author}">{$vo.author}</a> 查看{$vo.view}次| 评论{$vo.comment}次]</div>

				<div class="entry">
					<php>
						if($vo['thumb'])
							echo '<img src="'.mediaFormat($vo['thumb'],false,false).'" /><br />';

						$vo['brief'] = preg_replace("/\\\\\[img.*]/i","",$vo["brief"]);
						$vo['brief'] = preg_replace("/\\\\\[__MEDIA__\\\\\|(\\\\d+)\\\\]/",__APP__.C("MEDIA_URL"),$vo["brief"]);
						$vo['brief'] = str_replace("[","<",$vo['brief']);
						$vo['brief'] = str_replace("]",">",$vo['brief']);
						$vo['brief'] = strlen($vo['brief'])>C("NEWS_LIST_LEN") ? Input::msubstr($vo['brief'],0,C("NEWS_LIST_LEN")): $vo['brief'];
						echo $vo['brief'];
					</php>
					<a href="__URL__/view/news/{$vo.newshash}">&gt;&gt;&gt;全文</a>
					<if condition="$vo['media'] gt 0">
					<span class="mediainfo">
					<if condition="$vo['image'] gt 0">{$vo.image} 张图片</if>
					<if condition="$vo['media']-$vo['image'] gt 0"><php>echo $vo['media']-$vo['image']</php> 个附件</if>
					</span>
					</if>
				</div>
				<div class="tag">标签: {$vo.tag}</div>
				<div class="action"><a href="__URL__/view/news/{$vo.newshash}" title="查看 {$vo.title} 的全文">查看全文</a> | <a href="{$vo.url}" target="_blank" title="在新窗口中打开 {$vo.title} 的原始页面">打开原始地址</a></div>
				<div class="clear"></div>
			</div>
		</iterate>
		</div>
		<!-- end postList -->
		<div id="pagenav">
			{$pageNav}
	</div>
	</div>
<include file="../Public/sidebar" />
</div><!-- end content -->
</div>
<include file="../Public/footer" />